package com.ansion.commonchat.startup.workmanager.bwork.utils;

import com.ansion.commonchat.startup.workmanager.bwork.impl.BWorkManagerImpl;

/**
 * Created by wanghongjie on 2023/5/11
 * Describe : 用于执行工作请求的开始操作
 */
public class BStartWorkRunnable implements Runnable {

    private BWorkManagerImpl mWorkManagerImpl;
    private String mWorkSpecId;

    public BStartWorkRunnable(
            BWorkManagerImpl workManagerImpl,
            String workSpecId) {
        mWorkManagerImpl = workManagerImpl;
        mWorkSpecId = workSpecId;
    }

    @Override
    public void run() {
        mWorkManagerImpl.getProcessor().startWork(mWorkSpecId);
    }
}